/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="ESPECIALIDADESAMB")
public class EspecialidadesAmbProteu implements Serializable{
    @Id
    @Column(name="ESA_ST_CODIGO_AMB")
    private String esaStCodigoAmb;
    @Column(name = "ESA_ST_DESCRICAO")
    private String esaStDescricao;

    public String getEsaStCodigoAmb() {
        return esaStCodigoAmb;
    }

    public void setEsaStCodigoAmb(String esaStCodigoAmb) {
        this.esaStCodigoAmb = esaStCodigoAmb;
    }

    public String getEsaStDescricao() {
        return esaStDescricao;
    }

    public void setEsaStDescricao(String esaStDescricao) {
        this.esaStDescricao = esaStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EspecialidadesAmbProteu other = (EspecialidadesAmbProteu) obj;
        if ((this.esaStCodigoAmb == null) ? (other.esaStCodigoAmb != null) : !this.esaStCodigoAmb.equals(other.esaStCodigoAmb)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.esaStCodigoAmb != null ? this.esaStCodigoAmb.hashCode() : 0);
        return hash;
    }



}
